Inline and contextual delivery of database content

ABSTRACT

Methods, systems, and apparatus, including computer programs stored on computer-readable media, for inline and contextual delivery of content, which may include content selectively determined using private database content. In some implementations, interface data indicating text of a user interface of a electronic device is obtained. A particular term in the text of the user interface of the electronic device is determined to satisfy one or more criteria. Based on determining that the particular term satisfies the one or more criteria, the particular term is annotated to alter the appearance of the particular term in the user interface. After annotating the particular term, user interaction with the annotated term is detected and a card is provided for display in the user interface. The card can include information that corresponds to the term and that was determined using content from a private database for an organization of the user.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application is a continuation of U.S. application Ser. No. 16/247,892, filed Jan. 15, 2019, which claims the benefit of U.S. Provisional Patent Application No. 62/720,955 filed on Aug. 22, 2018. The disclosure of each of the foregoing applications is incorporated herein by reference.

BACKGROUND

The present specification relates to inline delivery of database content.

SUMMARY

In some implementations, a computing system can identify keywords in a user interface and dynamically retrieve and present relevant information inline with the user interface. For example, a client device can run a software agent, such as a web browser extension, that monitors a user interface for instances of certain keywords. When the keywords are present, the software agent annotates the keywords and makes them interactive in the user interface. If a user interacts with a keyword, for example, by placing a cursor over the keyword, the software agent causes an information card or information panel to be displayed, e.g., overlaying a portion of the original user interface or otherwise inserted into the user interface. In this manner, the user can easily access information that is contextually relevant to the user interface, without the need to open a new application or switch between interfaces. This technique also provides numerous other advantages, discussed below, such as allowing content to be efficiently integrated with third-party user interfaces that the content provider does not control.

The system allows for significant customizability. These keywords monitored by the software agent can be specific to a user or the user's organization. For example, when the user is an employee of a company, the keywords of interest can be extracted from a private database for the company. The keywords can additionally or alternatively be selected or filtered to terms applicable to the specific user, e.g., terms relevant to the user's role in the company. When one of the keywords is determined to be present in the user interface, the software agent communicates with a server system to obtain information related to the keyword. This information can include data retrieved from a private database that has information specific to an organization associated with the user. For example, if the keyword refers to a customer of a user's company, status information, statistics, contact information, and other information about the customer's account with the company can be provided from the company's private database.

The type of information provided, as well as the values shown for those information types, can be customized for the user and organization. For example, a sales representative and a product engineer at the same company may be shown different types of information for the same keyword, due to their different roles. Similarly, two users in a company with the same role might be shown different information for the same keyword, due to the users having different types of previous interactions with the system. In general, the system can use machine learning techniques to predictively select which information to show to a particular user at a particular time for a given keyword, and how to organize the information.

In many conventional systems, user interfaces have a predetermined structure or layout designed to accommodate the content displayed. To add a new frame or region of the interface, the structure of each user interface to be updated usually must be changed one by one. For example, to provide embedded content in a web page or web application, the user interface is often designed to include an iFrame or other element for the embedded content. Native applications also generally have pre-defined user interface layouts. This often makes it difficult to add or alter embedded content regions in user interfaces because the source code, HTML code, or other data defining each user interface needs to be individually changed. For example, it may be desirable to provide a new embedded content region in each of many different pages of a web site or web application, but doing so may require changes to each of the pages individually.

Embedding content is also challenging because the party desiring to embed the content may not control or have the ability to change the underlying user interface. For example, one company may have content to be embedded in an application provided by a different company. The content provider would need to rely on the application provider to modify the structure of the application, one page at a time, in order to have the content embedded. For example, it is often difficult for a company to integrate content from its proprietary database into a user interface provided by a third party, e.g., an e-mail application, a word processing application, a spreadsheet application, etc., because the company generally cannot change the structure of the user interface provided by the third-party.

The challenge of embedding content in user interfaces is also significant since the embedded content may be needed only selectively. For example, it may be desirable to embed content on some pages but not others. Similarly, the embedded content may only be applicable for a page at certain times and not others. The need for the embedded content may vary over time, and may be dependent on factors such as the context provided by other content in the page, which may also vary over time. As a result of these factors and others, simply adjusting a general template for many pages cannot perform the fine-grained integration of embedded content, since the decisions whether to embed content and what content to embed is often a page-specific decision that changes over time.

The techniques discussed in this document address these challenges by allowing content to be presented inline with web pages and applications that the content provider does not control and cannot modify. Similarly, the system can be configured to provide content inline with other content that has not been created yet, such as web pages or web applications that are not yet available.

The techniques in this document also provide an efficient way for users to access information, such as analytics data, in a user interface. By allowing a user to call up an information card within existing user interface, the user no longer needs to switch applications and lose the context of the applications involved in the user's current task.

Traditionally, if a user is performing a task with an application and desires to look up information from an analytics platform or other database-backed platform, the user generally needs to switch applications or windows, log in, submit a query for the information desired, then wait for results to be returned. The delays, multiple steps required, and overall inconvenience often discourage users from looking up needed information.

By contrast, the techniques in the present application do not require the user to switch applications or interfaces, and contextually-relevant information is provided in the interface where the user needs the information. This provides needed information to just the right user, time, and user interface where the information is needed. Delays are minimal because the client device can request and receive contents of the information cards before the user indicates that the information should be displayed. The software agent on a client device can evaluate contents of the user interface, generate a query for a server system, and receive and format results for display so the information cards for each of multiple different terms are available for display before the user indicates the terms of interest. Also, the user can call up the information with a single action on the existing interface, such as a mouseover, click, or tap on an annotated term in the user interface.

Limited user interface space is conserved since the information card can be provided in the same window or area of the application the user is already using, with no need to switch between applications. Also, the information card is displayed and removed dynamically, so it is shown only when the user requests it. Unlike interfaces that include a dedicated, persistent area for content that may not be needed at most times, the present technique frees up more of the interface for use by an application.

The techniques discussed below also provide an efficient way to publish customized or private database content to users. The keywords or terms of interest to each organization can be set based on the private database contents for the organization. For example, each organization can have its own set of customers, employees, suppliers, product names, and so on reflected in its private database. Based on the database contents, terms have a semantic meaning that is specific to that organization, which the system uses to tailor the display of information for members of the organization.

In some implementations, the system provides an interface for an administrator to easily adjust the sets of terms that the system will highlight and make interactive for members of the organization by updating the database or identifying certain portions of a dataset. For example, an administrator can identify columns of a private database corresponding to employee names, customer names, and product names. The system extracts the contents of these columns and designates them as key terms for the organization. The current set of these terms can be downloaded to client devices of members of the organization when they authenticate to the software agents on the client devices, so each time the user authenticates the set of terms is refreshed at the client device based on the current state of the database. The information displayed in the information cards is also generated using the current records of the database. Thus, by designating certain records or fields from an organization's database, an administrator can adjust or update the set of content published to some or all members of the organization, which will be made available through many user interfaces (e.g., presented in-line with any web page or web application).

When a client device indicates that one of the key terms for the organization is present, the server system can access the underlying database record(s) corresponding to the term to generate relevant information to provide. The semantic meaning of the term that is applicable for the user and organization is used to provide customized results. For example, different types of information are provided based on the classification of the term, e.g., whether a term is the name of an employee, customer, or product. Different semantic classifications can have different data types or sets of information to be provided. Even for a particular classification, of the many potential types of data that may be provided, a subset can be selected based on analysis of the database contents (e.g., to identify trends or items that are popular, recent, or unusual according to various thresholds), relevance to the user (e.g., applicability to the user's historical behavior or role in the organization), and/or context (e.g., other keywords in the user interface, which may indicate geographical location, time, individuals, or other information relevant to the user's current task). In this process, the organizations security policies are preserved. If a user does not have authorization to access a field or record from the database, the server system will enforce access restrictions and will not provide the information. Consequently, different users even within the same organization may be presented different sets of information for the same term, due to the users' differing roles, interaction histories, access authorizations, and other factors.

In one general aspect, a method performed by one or more computers includes: obtaining, by the one or more computers, interface data indicating text of a user interface of an electronic device, wherein the electronic device is associated with a user that is part of an organization; determining, by the one or more computers, that a particular term in the text of the user interface of the electronic device satisfies one or more criteria; based on determining that the particular term satisfies the one or more criteria, annotating, by the one or more computers, the particular term to alter the appearance of the particular term in the user interface; after annotating the particular term, detecting, by the one or more computers, user interaction with the annotated term; and in response to detecting the user interaction with the annotated term, providing, by the one or more computers, a card for display in the user interface, the card comprising information corresponding to the term wherein the information is determined using content from a private database for the organization.

Implementations can include one or more of the following features. In some implementations, the method includes identifying a user associated with the electronic device; and downloading, to the electronic device, data indicating a set of terms determined based at least in part on the user or organization. Determining that the particular term in the text of the user interface of the electronic device satisfies one or more criteria comprises determining, by the electronic device, that the particular term is included in the set of terms downloaded to the electronic device.

In some implementations, the set of terms includes entity names extracted from the private database for the organization.

In some implementations, the set of terms includes terms identified from the private database for the organization and filtered based on an identity of the user or a role of the user in the organization.

In some implementations, annotating the particular term to alter the appearance of the particular term in the user interface comprises altering at least one of a font, size, style, spacing, underline, color, background, highlight, or bounding shape for the annotated term.

In some implementations, detecting user interaction with the annotated term comprises detecting at least one of a click, drag, mouseover, swipe, tap, hold gesture, or selection on the particular term.

In some implementations, the method includes: in response to detecting user interaction with the annotated term, generating, by the electronic device, a request that indicates the particular term; transmitting the request from the electronic device to the server system over a communication network; and receiving, from the server system over the communication network and, data provided by the server system in response to the request. The data is retrieved from or is generated using data retrieved from the private database for the organization; and providing the card for display in the user interface comprises providing, in the card, the data retrieved from or generated using data retrieved from the private database for the organization.

In some implementations, providing the card for display comprises causing the card to be displayed overlaying a portion of the user interface.

In some implementations, the user interface of the electronic device is a user interface of an application executing on the electronic device; and the obtaining, determining, detecting, annotating, and providing are performed using a software agent executing on the electronic device.

In some implementations, the application is a web browser, and wherein the software agent is a browser extension module for the web browser.

In some implementations, the particular term is a name of an entity, and wherein providing the card for display in the user interface comprises providing data indicating indicators related to the entity.

In some implementations, the entity has a first classification, and the types of indicators included correspond to a predetermined set of data types corresponding to the first classification.

Other embodiments of these and other aspects include systems, devices, and computer-readable media configured to cause the actions of the methods to be performed.

The details of one or more embodiments of the invention are set forth in the accompanying drawings and the description below. Other features and advantages of the invention will become apparent from the description, the drawings, and the claims.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a diagram of an example of a system for inline delivery of database content.

FIGS. 2A-2B are diagrams illustrating another example of a system for inline delivery of database content.

FIG. 3 is a diagram illustrating an example of a user interface showing an information card provided in response to user interaction.

Like reference numbers and designations in the various drawings indicate like elements.

DETAILED DESCRIPTION

FIG. 1 is a diagram of an example of a system 100 for inline delivery of database content. The system 100 includes a client device 110, a server 120, a web server 130, and a network 140. The server 120 has access to a private database 122 for an organization. The server 120 may be implemented using multiple computers that cooperate to perform the functions discussed below, and which may be located remotely from each other. The client device 110 includes an application 114 as well as a software agent 112 that enables the client device 110 to dynamically generate and display contextually-relevant information cards displayed inline with the application 114. As discussed below, the software agent 112 allows the client device 110 to obtain and provide information from the private database 122 with the application 114 and web page from the web server 130, even though the application 114 and web page are controlled by third parties.

The client device 110 is associated with a user 102, who is a member of an organization, e.g., an employee of a company. The private database 122 represents database records stored by or for the organization. The records are not publicly available and are subject to data access restrictions, such as requirements that users be issued credentials from the organization that grant authorization to access the records. Different users may be granted different levels of authorization, and the server 120 enforces access restrictions so that each user is only allowed to access the subsets of information the user is authorized to access.

Traditional analytics platforms generally incorporate analytics content into the body of a document, using an iFrame or similar technique. This approach can be inefficient, because each application or web page generally needs to be updated individually. Further, this type of embedding may not be possible when the content provider does not control the target application or web page for content to be embedded into. For example, an organization cannot change the standard e-mail application interface that a third party provides.

In the system 100, instead of incorporating additional content into the source of a document or application, information is instead added, just in time, through the software agent 112, for example, a browser extension for a web browser. This provides the flexibility for the system to selectively provide dynamically changing content from the private database for any interface shown on the application 114, e.g., any web application or web page displayed by a web browser.

In the example of FIG. 1 , the client device 110 communicates with the web server 130 to obtain and display a page of a web site or web application in the application 114. The client device 110 generates a user interface 150 for the application 114. Concurrently, the software agent 112 runs on the client device 110 and receives, from the application 114, the text content of the rendered page, e.g., user interface 150.

The software agent 112 may require the user 102 to authenticate and thus prove authorization to receive content from the private database 122. The authentication of the user 102 can also indicate to the software agent 112 and/or server 120 the role of the user in the organization (e.g., software engineer, marketing technician, financial analyst, and so on) and the specific level of access authorization that has been granted to the user 102 by the organization.

With the user logged in, the software agent 112 accesses a set of terms 116, e.g., words and/or phrases, that are relevant to the user 102 and the organization. The set of terms stored at the client device 110. In some implementations, the set of terms 116 is requested and received from the server 120 each time the user 102 authenticates. The set of terms can represent values from certain fields of the private database 122, for example, values representing names of customers of the company of the user 102.

The software agent 112 compares the terms 116 with the text of the user interface 150 to identify matching terms. When the software agent 112 identifies one or more matches, it generates a query 118 that indicates the matches and sends the query 118 to the server 120. In some implementations, the software agent 112 also examines the text of the user interface 150 to identify and include in the query 118 other contextual factors that may be of interest (which may be different from the terms 116 of interest), such as terms indicating a time or a geographical location indicated in the user interface 150, or a task of the user 102 that may be indicated in the user interface 150. Various words and phrases indicating an overall subject or topic of the user interface 150 may also be extracted and provided in the query 118.

The server 120 processes the query 118 and generates results 124 using the contents of the private database 122. These results 124 can indicate, for each identified matching term, various indicators (e.g., attributes, statistics, visualizations, text, or other content) relevant to the term. In some instances, the indicators can represent key performance indicators for an entity referred to by an identified term with respect to the specific organization of the user 102. For example, when the term refers to a customer of a company of the user 102, one of the indicators may specify a product of the company that was purchased by the customer, current or forecasted sales of the company to the customer, etc.

The client device 110 receives the results 124 from the server 120. The software agent 112 annotates instances of the identified matching terms in the user interface and prepares the results 124 for display. For example, to annotate the matching terms, the software agent 112 may instruct the application 114 to highlight the term or otherwise change the formatting of the term (e.g., color, font, size, bold, italics, underlining, etc.) in the user interface 150. In some implementations, the results 124 are not immediately displayed. Rather, the software agent 112 causes the matching terms to become interactive, so that interaction of the user with a term triggers display of an information card for that term. In this manner, when a user indicates interest in one of the terms, e.g., by placing a mouse cursor over the term, the software agent 112 is notified of the interaction and causes an information card with the indicators relevant to the term to be displayed. The information card can be displayed overlaying a portion of the original user interface 150, for example, as a pop-up card near the instance of the term that the user interacted with. The software agent 112 also detects when the user 102 is no longer interested in the information card and automatically removes (e.g., closes or hides) the information card in response. For example, when the user moves the cursor away from the interactive term and away from the information card (or taps or clicks outside the interactive term and information card), the software agent 112 hides the information card.

In FIG. 1 , the software agent 112 has determined that the user interface 150 includes a term 152 “Example Co.,” which is one of the terms 116 relevant to the organization of the user 102. The software agent 112 has received results 124 that indicate indicators for this term 152, which represents a customer of the organization of the user 102. In response to identifying the matching term 152, and in some instances also receiving results 124 from the server 120 for the matching term 152, the software agent 112 makes the term 152 interactive and causes the term 152 to be annotated, in this case, displayed bold, underlined, and in italics. Initially, the software agent 112 does not cause any of the indicators for the term 152 to be displayed. However, when the user moves the cursor 154 over the term 152, the software agent 112 detects the interaction and displays an information card 160 showing various indicators provided by the server 120 in the results 124. When the user 102 is done reviewing the information card 160, the user 102 can move the cursor away or click away from the term 152 and information card 160, and the software agent 112 automatically hides the information card 160 until the user 102 again interacts with the term 152.

The software agent 112 can receive and examine the content of the user interface 150 of the application 114 on a recurring or ongoing basis. For example, as the user 102 navigates to a new web page or a new view of a web application, the software agent 112 examines the updated content of the user interface 150. The software agent 112 finds matches in the updated interface, requests and obtains new results for the updated interface, and causes new sets of terms to be annotated and made interactive, allowing the user 102 to access information cards for key terms for whatever interface content may be provided in the application 114. The software agent 112 can receive and analyze user interface content in substantially real time. For example, if the user 102 composes an e-mail message, the software agent can detect matching terms in text that the user types, in some instances while the user is still typing, and annotate matching terms in this content.

The system can provide very low latency for users to receive information regarding key terms in a user interface. Because the software agent 112 can identify terms and obtain terms automatically and in the background, in many instances the information needed for an information card 160 is already present at the client device 110 before the term is annotated. Consequently, when the user interacts with an annotated term, the corresponding information card 160 can be displayed very quickly, often within a second or less. This provides users a very fast response while also allowing access to the information from the private database 122 without having to leave the user interface 150 of the application 114.

FIGS. 2A-2B are diagrams illustrating another example of a system 200 for inline delivery of database content. FIGS. 2A-2B illustrate various operations of the system 100 in greater detail. FIGS. 2A-2B illustrate various operations and flows of data represented as stages (A)-(N), which can be performed in the order shown or in a different order.

The system 200 includes a client device 210, a server 220, a web server 230, and a network 240. The server 220 has access to a private database 222 for an organization. The server 220 may be implemented using multiple computers that cooperate to perform the functions discussed below, and which may be located remotely from each other. The client device 210 includes an application 214 as well as a software agent 212 that enables the client device 210 to dynamically generate and display contextually-relevant information cards displayed inline with the application 214. As discussed below, the software agent 212 allows the client device 210 to obtain and provide information from the private database 222 with the application 214 and web page from the web server 230, even though the application 214 and web page are controlled by third parties.

In stage (A), the client device 210 obtains and displays content from the web server 230 in the user interface 250.

In stage (B), the user 202 authenticates to the software agent 212, e.g., a web browser extension or add-on for another type of application 114. For example, the software agent 212 may prompt the user 202 to log in, or the user may click an icon for the software agent 212 to initiate log in. The user can enter a username and password, or alternatively authenticate in another form, e.g., through biometric data entry, entry of a PIN code, etc.

In stage (C), the software agent 212 communicates with the server 220 to authenticate the user 202. The software agent 212 may optionally request updated information from the server 220, such as a set of terms 216 representing keywords relevant to the user 202 and an organization of the user 202.

In stage (D), the server 220 completes the authentication of the user 202. Once it is determined that the received credentials are valid and are authorize access to information from the private database 222, the server 220 obtains the current set of terms or keywords that are applicable for the user 202 and the user's organization. This can involve extracting information from the private database 222, for example, extracting values from certain columns or fields of the database, such as extracting values representing names of entities or objects. Terms may additionally or alternatively be extracted based on having certain metadata tags or data types associated with them. Other terms, such as abbreviations, nicknames, and other identifiers can also be included. The terms may be filtered based on the access permissions of the user 202, the role of the user 202 (e.g., department, job title, responsibilities, etc.), and other factors.

In stage (E), the server 220 provides the terms to the client device 110 for storage and for use by the software agent 212. These terms can be set by an administrator for the system 200. In some implementations, the set of terms is generated by the server, for example, by pulling terms from a portions of a database or other data source. For example, the server 220 may access database tables that list entity names (e.g., for competitors, suppliers, partner organization, employees, customer contacts, etc.) as well as abbreviations and/or nicknames for them. Based on the identity and role of the user 202, the server 220 may filter the list, e.g., limiting the extracted set of terms to those having information determined to be relevant to the role of the user 202 and also those for which the user 202 has security permissions to access corresponding data. The set of terms may be further limited to terms for types of entities for which appropriate information card templates have been defined. The filtered list of terms can then be provided to the client device 210. The database may be queried dynamically each time to obtain an up-to-date set of key terms each time a new set of terms 216 is requested.

In some implementations, the user 202 may be able to customize the set of terms that are annotated and made interactive to be able to trigger display of an information card. For example, the software agent 212 may provide a user interface allowing a user 202 to edit the list of terms, e.g., to add or remove terms from the set that will be identified and annotated in the future. These changes can be customized for the specific user identity of the user 202 who is logged in and/or for the specific client device 210 used. The user interface may allow edits for individual terms, or for groups or categories of terms. This ability can allow a user to limit the terms that will be annotated to the set that the user is specifically interested in. Similarly, it can expand the set of terms to include terms that may not be directly related to the user's role but still relate to the user's interests.

The terms 216 can be terms other than proper names. For example, for an engineer, the terms 216 may additionally or alternatively may include component types, product names, or technical terms. Corresponding information cards may indicate a variety of types of information. For a component, a card might provide specifications, indicate suppliers, provide links to datasheets, identify products that use the component, etc.

In stage (F), the software agent 212 obtains user interface content from the application 214. For example, the software application 212 obtains text content from the user interface 250. This can include the entire content of the rendered page, document, or view, not only the portion that may be currently visible on screen (e.g., due to the current scrolling position).

In stage (G), the software agent 212 evaluates content of the user interface. For example, this can include comparing text from the user interface 250 with the terms 216 provided by the server 220 and stored at the client device 210, to identify matching terms that should be annotated and for which information cards may be generated.

In some implementations, the software agent 212 and/or the database server 220 may analyze text of the user interface 250 to identify or generate indicators to be displayed. Through analysis of the text of the UI, the software agent 212 and/or the database server 220 can, in real-time, produce indicators and other information on the fly, without the indicators being previously designed by a human author or administrator. For example, if the software agent detects there are multiple instance of an attribute combined with time and geographical dimensions, through interactions with the server 220, the software agent can produce specific aggregations of data for the indicated time and geography and present the information in an information card. To carry out this function, the server 220 can access a semantic graph to enable interpretation of content as it relates to a business or other entity, provide a summary, and link to more details, all of which can be produced dynamically. The semantic graph can indicate, for example, the attributes of an entity and may indicate where to locate data for the attributes from the private database 222.

As an example, from text in a web page, the software agent 212 may identify words in various semantic categories. As an example, along with a keyword “Example Co.,” the extension may identify the terms “Q2,” “Florida,” “subscribers,” and “2016” which are not keywords corresponding to specific entities of interest, but nonetheless have a semantic meaning identified by the software agent 212. From these additional terms, the software agent may compose one or more indicators to be requested from the database server 220. For example, the software agent 212 may generate a query that requests a number of subscribers from Example Co. were added in Florida from April to June of 2016. Similarly, the software agent 212 may generate a query requesting a total number of subscribers from the company for the same period and location. In addition, or as an alternative, the software agent 212 may provide the terms with semantic meanings to the database server 220, and the database server 220 can identify appropriate indicators from the terms.

Referring to FIG. 2B, in stage (H), the software agent 212 generates a query that indicates which terms 216 were identified in the user interface 250. The query can additionally include other contextual information, such as indications of time, geographical location, or topic that the software agent 212 identified in the content from the user interface 250. The software agent 212 causes the client device 210 to send the query to the server 220.

In stage (I), the server 220 identifies a semantic meaning for each identified term that the query indicates. As part of identifying a semantic meaning, the server 220 may select a semantic classification from among multiple predetermined semantic categories. The semantic meaning is generated using the information of the private database 222 and so can be specific to the user 202 and the organization of the user. For example, one company may be a supplier for one organization and a customer of another. Similarly, even within one organization, an individual may be the supervisor of one user but a peer of or may be supervised by a different user. Thus, the interpretation of the terms can vary based on the relationships indicated in the private database 222 and can vary from one organization to another, from one user to another, and over the course of time.

In stage (J), the server 220 selects indicators for each identified match to the terms 216. The server 220 also looks up or calculates values for each type of indicator selected. These indicators or types of values to show may be any of multiple types of values. For example, some indicators may be attributes or database field values retrieved directly from a database or other data source. As another example, indicators may be results of aggregation of data from one or more databases, or may be results of processing data with equations, formulas, functions, or models.

The server 220 may select the indicators to be provided using one or more templates that specify which indicators to use in information cards corresponding to different types of entities. For example, a template specifying a first set of indicators may be used for entities classified as suppliers, while a template specifying a different set of indicators may be used for entities classified as customers. As another example, companies, people, locations, and products may each have different templates or sets of indicators predefined, since each may have different attributes or characteristics of interest. Both of these can be used together also. For example, a first set of the indicators may be determined based one classification of an entity (e.g., person, place, object, . . . ) while a second set of the indicators may be determined based on a different classification for the entity (e.g., supplier, customer, competitor, etc.) The templates may indicate formatting and layout for information cards as well as the types of indicators that should be provided.

As noted above, for each matching term, the server 220 determines a semantic classification of the term, e.g., a category or classification of the term and/or identifying an entity that the term refers to (e.g., where the entity may be a particular person, company, object, etc.). The server 220 also accesses one or more records from the private database 222. The types of records accessed may vary based on the semantic classification. For example, when the term is a customer name, the data may indicate indicating attributes of the customer (e.g., size, geographical presence, industry, etc.), financial records for the customer (e.g., products purchased, historical and predicted sales amounts, etc.), contact information for representatives of the customer, and so on. When the term is determined to refer to an employee, the accessed records may indicate the department of the employee, the responsibilities of the employee, the supervisor of the employee, the length of time the employee has been with the company, and so on.

For each semantic category, the server 220 can have a number of potential indicators or types of data that can be provided. These indicators can take any appropriate form, such as text, numbers, icons, charts, graphs, images, etc. In some instances, the indicators can represent key performance indicators for an entity referenced by an identified term with respect to the specific organization of the user 202. For each matching term identified in the user interface 250, the server 220 selects a subset of the available indicator or data types to provide in the results 224. This subset can be selected based on various factors. In some implementations, a predefined set of indicators is pre-associated with different semantic classifications. As a result, one set of indicators is provided for customers, another set of indicators is provided for employees, another set of indicators is provided for suppliers, and so on. One way that the server 220 can implement this is to have templates defined for each semantic classification, where the template indicates data types of indicators that are set to be provided for terms having that classification. Each indicator can have one or more references to data within the database, e.g., a column or field type of the private database 222 used to obtain or generate the indicator, as well as corresponding equations for generating the indicator and criteria such as threshold for evaluating the indicator.

In some implementations, at least some of the indicators are selected dynamically based on analysis of the contents of the private database 222. This process can be done to modify (e.g., filter and/or supplement) a base set of indicators pre-associated with a semantic classification or to generate the set of indicators directly. The indicators to be provided are selected from what is available or what can be calculated from the information in the private database 222 and optionally other data sources. From the available indicators, the server 220 can apply various thresholds to determine which indicators are most relevant. For example, if an indicator deviates from a historical average or range by more than a threshold amount, the indicator can be indicated selected. Similarly, if an indicator relates to a recent or upcoming event occurring within a threshold amount of time from the current time, the indicator can be selected. In general, each indicator can be assigned a score for each of multiple factors, the indicators can be ranked based on the scores, and the highest-scoring indicators can be selected to provide to the client device 210 in the results 224.

The indicators can also be customized based on the role of the user 202 in the organization. For example, the server 220 can look up a job title, department identifier, or other classification of the user 202, and also access data specifying indicators relevant to that classification. As an example, a user indicated in company records as a financial analysis may be provided financial metrics for a customer, while a user indicated as an engineer may be provided technical information about a product sold to the customer. The indicators selected can be further customized based on the historical interaction of the user 202. For example, based on records of interactions of the user 202 with prior information cards, the server 220 can determine which indicators are likely to be of interest to the user 202 for different types of entities.

The server 220 may use various other techniques to select indicators, including predefined indicators for specific classifications or specific entities, user interactions data for multiple users, user preferences of the user 202, prior behavior of the user 202, artificial intelligence or machine learning, analysis of trends, news and recent events, and so on.

In some implementations, the system tracks user interactions and learns from user behavior. For example, the system can monitor interactions with information cards and adapt the current information card or later-provided information cards in response. The system can track any of a variety of interaction parameters, such as how long an information card is displayed, how many times the information card is caused to be displayed, whether a user moves a cursor over a UI element (e.g., a mouseover), how long the cursor hovers over the UI element, whether a UI element is selected or copied to a clipboard, etc. Information cards can have interactive elements also, e.g., buttons, scrolling controls, drop-down lists, hyperlinks, sliders, dials, maps, embedded audio or video, and so on. These interactive elements may reveal additional indicators or allow a user to access additional content from the private database or other data sources. The system can track interactions with these interactive elements as well.

The system can customize the characteristics of information cards for users individually or based on aggregated information about interactions of multiple users. For example, according to the level of interaction that users have with indicators on the cards, the system can change which types of indicators are selected, as well as the prominence, arrangement, or number of indicators presented. If one user frequently hovers over, selects, or copies to a clipboard information from a certain type of indicator for entities of a certain classification, the system may generate future cards for that classification to show the indicator more prominently (e.g. larger or closer to the top of the card) and/or to include additional related indicators (e.g., showing the indicator with greater precision, or showing trends in the indicator over time, or showing other indicators of the same data type). As another example, if a user rarely interacts with certain types of indicators, those indicators may be made less prominent (e.g., smaller or lower in the card) or may be removed.

Tracking and adjustment of information cards can be done on a per-user basis, or for groups of users (e.g., users at similar roles or in the same department or organization), or across users generally. Similarly, tracking and adjustment can be done for certain classifications as a whole (e.g., across all entities or terms sharing a semantic classification), or tracking and adjustment may be done separately at the level of individual terms or entities. For example, two companies of the same semantic classification (e.g., both suppliers to an organization) may have different indicators shown in their information cards, or have a different arrangement of the indicators, due to different ways users interact with the respective cards.

The server 220 may apply security policies when selecting which types of indicators to use and when generating or providing values for the indicators to the client device 210. For example, security policies may limit access to certain databases or portions of databases, and the server 220 may determine whether the user 202 has sufficient access privileges before providing (or even simply retrieving or computing) values for that depend on data that the user 202 is not authorized to access. In some implementations, database information may secure information at the level of a table, column, and/or row. As a result, collections of records, individual records, or even individual fields or elements of records may have security policies applied. If the server 220 determines that the value of an indicator would depend on data that the user 202 is not authorized to access, the server 220 does not provide the indicator value. Instead, the server 220 may omit that indicator, substitute the indicator for one that the user 202 is authorized to obtain, or cause a placeholder value such as “n/a” or “- - - ” to be provided to indicate that the value is not being provided.

In some implementations, the server 220 maintains associations or links between terms and different data records or data sources. For example, the server 220 may store data mapping terms to data cubes used for online analytical processing (OLAP). Selecting the types of indicators and determining the values for those indicators can involve using the mapping data to retrieve data from the data cubes (or other forms of data storage). Other mappings may also be used. For example, different terms may mapped to a unique identifier, which is then mapped to other records. For example, the terms “Example Company,” “Example Co.,” “EC,” and other related terms may each map to a single entity identifier, which may then be used to retrieve information about the which indicators are relevant and what the values for those indicators should be.

In stage (K), the server 220 provides the values for the selected indicators for each identified term from the query to the client device 210. In the example, the selected indicators include a status of the “Example Co.” company with respect to the organization of the user 202, a satisfaction rating indicating how satisfied the company appears to be as a client, a number of open support issues for “Example Co.” and contact information for “Example Co.” The server provides an indication of each of these indicator types, as well as a value corresponding to each indicator, e.g., a value of “current” for the status indicator, a value of “82” for the satisfaction rating indicator, a value of “3” for the number of support issues, and the phone number “555-5555” for the contact information indicator.

In stage (L), the software agent 212 cooperates with the application 214 to annotate the identified terms in the user interface 250. For example, the term 252 is annotated in FIG. 2B. This process causes the annotated terms to become interactive. For example, the software agent 212 can register with the application 214 to receive notification of interaction events, such as a mouseover event, click event, tap event, etc.

In some implementations, when the application 214 is a web browser, the software agent 212 can inject code, such as HTML code and/or JavaScript code, into the content of a web page being browsed to cause annotations to be shown. The injected code may also listen for and respond to events, such as a click, mouseover, tap, or other interaction with annotated terms. When the application 214 is not a web browser, the software agent 212 may use other techniques, such as macros or APIs to cause terms to be annotated and become interactive. In a similar manner that a web browser accepts toolbars and extension modules, the application 214 may provide extension components to integrate with other types of applications as well. More generally, the software agent may provide overlay content to be placed on, around, or over the place where the term occurs. This may optionally be done through communication with the operating system rather than integration with a specific application.

In stage (M), the software agent 212 detects interaction with one of the annotated terms. For example, the user 202 moves a cursor 254 over the annotated term 252. The software agent 212 may detect the interaction by being notified by code that was injected into a web page, such as event handling code that notifies the software agent 212 of the user action. Other techniques may additionally or alternatively be used. For example, the software agent 212 may monitor user input events generally, with information provided by the operating system, for example. The software agent 212 may track the on-screen position of each annotated term, as well as the position of a cursor or user input, and thus detect when the user has interacted with one of the annotated terms.

In stage (N), the software agent 212 causes the display of an information card 260, for example, as an overlay or pop-up over the original user interface 250. The information card can include the indicators selected by the server 220 and provided over the network. In some implementations, the information card 260 can be displayed near, e.g., adjacent to or even partially or completely overlapping the annotated term 252.

While various examples discuss annotating terms shown in a web page, the same techniques can be used to annotate and make interactive terms occurring anywhere in a user interface. Thus, terms in applications, documents, toolbars, controls, or any other part of a user interface can be annotated and made interactive to trigger display of an information card corresponding to the term.

As discussed above, the application can be a web browser, and the software agent can be a web browser extension. Nevertheless, the same techniques can be used to provide information cards for other types of applications and with other types of software agents. For example, a native application for word processing, spreadsheet editing, presentation editing, document viewing, etc. can provide an application programming interface (API) through which the content of the application can be provided to a software agent implemented as an application add-on module or extension. The software agent can integrate with or operate alongside a native application to identify keywords and dynamically display information cards as discussed herein.

FIG. 3 is a diagram illustrating an example of a user interface 300 showing an information card provided in response to user interaction. In the example, the user interface 300 is one that may be provided by a client device, such as devices 110, 210 above. The particular example illustrated shows a web browser and a web page providing information from a user's e-mail account. Upon navigating to the web page, the client device obtains the text content to be displayed, e.g., content of the web page, and checks the text content for matches with a set of key terms, e.g., words or phrases indicated by a server system or stored at the client device. As discussed above each of the key terms has corresponding information in a database. A key term may refer to a particular entity, and the entity can have a particular information card template associated with it.

In FIG. 3 , after navigating to the web page shown in the user interface 300, the system has determined that the phrase “Global Corporation” is matches an entry in a list of key phrases. In response, the client device annotates each instance 310 of this term in the user interface 300, shown here by bold and italic formatting and a box around the term. Other types of annotations can be additionally or alternatively used. Each instance of the key term is also made interactive.

When the user interacts with an instance 310 of the key term, the client device generates and provides an information card 320 corresponding to an entity represented by the term. As illustrated, the interaction can be a mouse-over event where a cursor rests on or near the annotated term for at least a minimum amount of time. This interaction can trigger the client device to request an information card from a server system. The information card can include any of various types of information relating to the entity indicated by the key term, such as values from a database, statistics, visualizations, links to further information, quantitative or qualitative ratings related to the entity, and so on.

In some implementations, to allow the client device to obtain the data for the information card, the server system (1) maps an identified key term indicated by the client device to a specific entity, (2) selects an information card template corresponding to the specific entity or a type or classification of that entity, and (3) retrieves information from a database relating to the specific entity, according to the types of information specified by the selected information card template. The server system can then send the data for the information card to the client device for display. In some implementations, this process is done in substantially real time. For example, the server system can be tuned and can cache information about various entities so that the client device can obtain and display an information card less than a threshold amount of time after detecting the user interaction (e.g., 3 seconds, 1 second, 0.5 seconds, etc.)

A number of implementations have been described. Nevertheless, it will be understood that various modifications may be made without departing from the spirit and scope of the disclosure. For example, various forms of the flows shown above may be used, with steps re-ordered, added, or removed.

Embodiments of the invention and all of the functional operations described in this specification can be implemented in digital electronic circuitry, or in computer software, firmware, or hardware, including the structures disclosed in this specification and their structural equivalents, or in combinations of one or more of them. Embodiments of the invention can be implemented as one or more computer program products, e.g., one or more modules of computer program instructions encoded on a computer readable medium for execution by, or to control the operation of, data processing apparatus. The computer readable medium can be a machine-readable storage device, a machine-readable storage substrate, a memory device, a composition of matter effecting a machine-readable propagated signal, or a combination of one or more of them. The term “data processing apparatus” encompasses all apparatus, devices, and machines for processing data, including by way of example a programmable processor, a computer, or multiple processors or computers. The apparatus can include, in addition to hardware, code that creates an execution environment for the computer program in question, e.g., code that constitutes processor firmware, a protocol stack, a database management system, an operating system, or a combination of one or more of them. A propagated signal is an artificially generated signal, e.g., a machine-generated electrical, optical, or electromagnetic signal that is generated to encode information for transmission to suitable receiver apparatus.

A computer program (also known as a program, software, software application, script, or code) can be written in any form of programming language, including compiled or interpreted languages, and it can be deployed in any form, including as a stand alone program or as a module, component, subroutine, or other unit suitable for use in a computing environment. A computer program does not necessarily correspond to a file in a file system. A program can be stored in a portion of a file that holds other programs or data (e.g., one or more scripts stored in a markup language document), in a single file dedicated to the program in question, or in multiple coordinated files (e.g., files that store one or more modules, sub programs, or portions of code). A computer program can be deployed to be executed on one computer or on multiple computers that are located at one site or distributed across multiple sites and interconnected by a communication network.

The processes and logic flows described in this specification can be performed by one or more programmable processors executing one or more computer programs to perform functions by operating on input data and generating output. The processes and logic flows can also be performed by, and apparatus can also be implemented as, special purpose logic circuitry, e.g., an FPGA (field programmable gate array) or an ASIC (application specific integrated circuit).

Processors suitable for the execution of a computer program include, by way of example, both general and special purpose microprocessors, and any one or more processors of any kind of digital computer. Generally, a processor will receive instructions and data from a read only memory or a random access memory or both. The essential elements of a computer are a processor for performing instructions and one or more memory devices for storing instructions and data. Generally, a computer will also include, or be operatively coupled to receive data from or transfer data to, or both, one or more mass storage devices for storing data, e.g., magnetic, magneto optical disks, or optical disks. However, a computer need not have such devices. Moreover, a computer can be embedded in another device, e.g., a tablet computer, a mobile telephone, a personal digital assistant (PDA), a mobile audio player, a Global Positioning System (GPS) receiver, to name just a few. Computer readable media suitable for storing computer program instructions and data include all forms of non volatile memory, media and memory devices, including by way of example semiconductor memory devices, e.g., EPROM, EEPROM, and flash memory devices; magnetic disks, e.g., internal hard disks or removable disks; magneto optical disks; and CD ROM and DVD-ROM disks. The processor and the memory can be supplemented by, or incorporated in, special purpose logic circuitry.

To provide for interaction with a user, embodiments of the invention can be implemented on a computer having a display device, e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor, for displaying information to the user and a keyboard and a pointing device, e.g., a mouse or a trackball, by which the user can provide input to the computer. Other kinds of devices can be used to provide for interaction with a user as well; for example, feedback provided to the user can be any form of sensory feedback, e.g., visual feedback, auditory feedback, or tactile feedback; and input from the user can be received in any form, including acoustic, speech, or tactile input.

Embodiments of the invention can be implemented in a computing system that includes a back end component, e.g., as a data server, or that includes a middleware component, e.g., an application server, or that includes a front end component, e.g., a client computer having a graphical user interface or a Web browser through which a user can interact with an implementation of the invention, or any combination of one or more such back end, middleware, or front end components. The components of the system can be interconnected by any form or medium of digital data communication, e.g., a communication network. Examples of communication networks include a local area network (“LAN”) and a wide area network (“WAN”), e.g., the Internet.

The computing system can include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other.

While this specification contains many specifics, these should not be construed as limitations on the scope of the invention or of what may be claimed, but rather as descriptions of features specific to particular embodiments of the invention. Certain features that are described in this specification in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination. Moreover, although features may be described above as acting in certain combinations and even initially claimed as such, one or more features from a claimed combination can in some cases be excised from the combination, and the claimed combination may be directed to a subcombination or variation of a subcombination.

Similarly, while operations are depicted in the drawings in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order, or that all illustrated operations be performed, to achieve desirable results. In certain circumstances, multitasking and parallel processing may be advantageous. Moreover, the separation of various system components in the embodiments described above should not be understood as requiring such separation in all embodiments, and it should be understood that the described program components and systems can generally be integrated together in a single software product or packaged into multiple software products.

In each instance where an HTML file is mentioned, other file types or formats may be substituted. For instance, an HTML file may be replaced by an XML, JSON, plain text, or other types of files. Moreover, where a table or hash table is mentioned, other data structures (such as spreadsheets, relational databases, or structured files) may be used.

Particular embodiments of the invention have been described. Other embodiments are within the scope of the following claims. For example, the steps recited in the claims can be performed in a different order and still achieve desirable results. 

What is claimed is:
 1. A method performed by one or more computers, the method comprising: storing, by the one or more computers, records specifying a set of terms and corresponding entities represented by the respective terms; receiving, by the one or more computers, a message from a client device over a communication network, wherein the network indicates that a particular term from the set of terms is included in text of a user interface of the client device; in response to receiving the message from the client device, using, by the one or more computers, the stored records to identify a particular entity corresponding to the particular term; identifying, by the one or more computers, one or more attributes of the particular entity using a semantic graph; retrieving, by the one or more computers, values for the one or more attributes of the particular entity from a database; and providing, by the one or more computers, a response to the client device over the communication network, wherein the response identifies the one or more attributes of the particular entity and includes the retrieved values for the one or more attributes of the particular entity.
 2. The method of claim 1, wherein providing the response to the client device comprises providing information card data defining an information card to be presented by the client device in response to user interaction with the particular term, wherein the information card data is provided to the client device over the network before a user of the client device interacts with the particular term in the user interface of the client device.
 3. The method of claim 1, further comprising: determining a semantic classification for the particular entity; and selecting, from among a plurality of card templates, a card template corresponding to the determined semantic classification; wherein providing the response to the client device comprises providing information card data having contents specified at least in part by the selected card template.
 4. The method of claim 1, further comprising providing the set of terms to the client device over the communication network; and wherein receiving the message comprises receiving a message sent by the client device in response to the client device determining that the particular term from the set of terms is included in the text of the user interface of the client device.
 5. The method of claim 1, wherein the message from the client device indicates keywords included in the text of the user interface of the client device in addition to the particular term; and wherein the method includes selecting, from among keywords in the user interface, which a subset of the keywords that are relevant to the entity based on information in the semantic graph.
 6. The method of claim 1, wherein the message from the client device indicates keywords included in the text of the user interface of the client device in addition to the particular term; wherein the keywords indicate a time period or geographical location referenced in the text of the user interface; and wherein the method includes creating an aggregation of data about the particular entity for the time period or geographical location indicated by the keywords, and wherein the response to the client device includes one or more values determined based on the aggregation.
 7. The method of claim 1, further comprising identifying a user of the client device; and wherein the response to the client device has a set of values describing the particular entity, wherein the set of values is customized based on the identified user of the client device.
 8. The method of claim 1, further comprising identifying a user of the client device; and wherein the response to the client device has a set of values describing the particular entity, wherein the set of values is customized based on a history of one or more prior interactions of the user of the client device with annotated terms or information cards presented to the user.
 9. A system comprising: one or more computers; and one or more computer-readable media storing instructions that are operable, when executed by the one or more computers, to cause the one or more computers to perform operations comprising: storing, by the one or more computers, records specifying a set of terms and corresponding entities represented by the respective terms; receiving, by the one or more computers, a message from a client device over a communication network, wherein the network indicates that a particular term from the set of terms is included in text of a user interface of the client device; in response to receiving the message from the client device, using, by the one or more computers, the stored records to identify a particular entity corresponding to the particular term; identifying, by the one or more computers, one or more attributes of the particular entity using a semantic graph; retrieving, by the one or more computers, values for the one or more attributes of the particular entity from a database; and providing, by the one or more computers, a response to the client device over the communication network, wherein the response identifies the one or more attributes of the particular entity and includes the retrieved values for the one or more attributes of the particular entity.
 10. The system of claim 9, wherein providing the response to the client device comprises providing information card data defining an information card to be presented by the client device in response to user interaction with the particular term, wherein the information card data is provided to the client device over the network before a user of the client device interacts with the particular term in the user interface of the client device.
 11. The system of claim 9, wherein the operations further comprise: determining a semantic classification for the particular entity; and selecting, from among a plurality of card templates, a card template corresponding to the determined semantic classification; wherein providing the response to the client device comprises providing information card data having contents specified at least in part by the selected card template.
 12. The system of claim 9, wherein the operations further comprise providing the set of terms to the client device over the communication network; and wherein receiving the message comprises receiving a message sent by the client device in response to the client device determining that the particular term from the set of terms is included in the text of the user interface of the client device.
 13. The system of claim 9, wherein the message from the client device indicates keywords included in the text of the user interface of the client device in addition to the particular term; and wherein the operations further comprise selecting, from among keywords in the user interface, which a subset of the keywords that are relevant to the entity based on information in the semantic graph.
 14. The system of claim 9, wherein the message from the client device indicates keywords included in the text of the user interface of the client device in addition to the particular term; wherein the keywords indicate a time period or geographical location referenced in the text of the user interface; and wherein the operations further comprise creating an aggregation of data about the particular entity for the time period or geographical location indicated by the keywords, and wherein the response to the client device includes one or more values determined based on the aggregation.
 15. The system of claim 9, wherein the operations further comprise identifying a user of the client device; and wherein the response to the client device has a set of values describing the particular entity, wherein the set of values is customized based on the identified user of the client device.
 16. The system of claim 9, wherein the operations further comprise identifying a user of the client device; and wherein the response to the client device has a set of values describing the particular entity, wherein the set of values is customized based on a history of one or more prior interactions of the user of the client device with annotated terms or information cards presented to the user.
 17. One or more non-transitory computer-readable media storing instructions that are operable, when executed by one or more computers, to cause the one or more computers to perform operations comprising: storing, by the one or more computers, records specifying a set of terms and corresponding entities represented by the respective terms; receiving, by the one or more computers, a message from a client device over a communication network, wherein the network indicates that a particular term from the set of terms is included in text of a user interface of the client device; in response to receiving the message from the client device, using, by the one or more computers, the stored records to identify a particular entity corresponding to the particular term; identifying, by the one or more computers, one or more attributes of the particular entity using a semantic graph; retrieving, by the one or more computers, values for the one or more attributes of the particular entity from a database; and providing, by the one or more computers, a response to the client device over the communication network, wherein the response identifies the one or more attributes of the particular entity and includes the retrieved values for the one or more attributes of the particular entity.
 18. The one or more non-transitory computer-readable media of claim 17, wherein providing the response to the client device comprises providing information card data defining an information card to be presented by the client device in response to user interaction with the particular term, wherein the information card data is provided to the client device over the network before a user of the client device interacts with the particular term in the user interface of the client device.
 19. The one or more non-transitory computer-readable media of claim 17, wherein the operations further comprise: determining a semantic classification for the particular entity; and selecting, from among a plurality of card templates, a card template corresponding to the determined semantic classification; wherein providing the response to the client device comprises providing information card data having contents specified at least in part by the selected card template.
 20. The one or more non-transitory computer-readable media of claim 17, wherein the operations further comprise providing the set of terms to the client device over the communication network; and wherein receiving the message comprises receiving a message sent by the client device in response to the client device determining that the particular term from the set of terms is included in the text of the user interface of the client device. 